import request from '@/utils/request'

export default {

  getAllTeacher() {
    return request({
      url: `/eduservice/edu-teacher/`,
      method: 'get'
    })
  },
  getTeacherPageVo(current, limit, teacherQuery) {
    return request({
      url: `/eduservice/edu-teacher/getTeacherPageVo/${current}/${limit}`,
      method: 'post',
      data: teacherQuery
    })
  },
  delTeacher(id) {
    return request({
      url: `/eduservice/edu-teacher/${id}`,
      method: 'delete'
    })
  },
  addTeacher(eduTeacher) {
    return request({
      url: `/eduservice/edu-teacher/addTeacher`,
      method: 'post',
      data: eduTeacher
    })
  },
  getTeacherById(id) {
    return request({
      url: `/eduservice/edu-teacher/${id}`,
      method: 'get'
    })
  },
  updateTeacher(eduTeacher) {
    return request({
      url: `/eduservice/edu-teacher/updateTeacher`,
      method: 'put',
      data: eduTeacher
    })
  }
}
